<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="ajax" uri="javawebparts/ajaxparts/taglib"%>
<link href="../Admin-CSS/style.css" rel="stylesheet" type="text/css" />


<table width="100%">
	<tbody>
		<tr>
			<td height="40" class="sectionheading bottom-border">
				Listing Options
			</td>
		</tr>

		<tr>
			<td>
				<table class="verdana12blacknormal" width="100%">
					<tr>
						<td>
							<br>
							<s:a href="showHomePageListSettings.htm"
								cssClass="verdana11greynormal"> Homepage
									lists settings</s:a>
							<br>
							<br>
							<s:form id="form" action="updateListingOptions.htm" method="post"
								theme="simple">
								<s:hidden name="listingOptions.id" value="%{listingOptions.id}" />
								<table width="100%" class="verdana12blacknormal">
									<tbody>
										<tr>
											<td>
												<s:actionerror cssClass="note-red" />
												<s:fielderror cssClass="note-red" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												HTML Manipulation:
											</td>
											<td>
												<s:select theme="simple" cssClass="Textfiled-border"
													value="%{listingOptions.htmlManipulation}"
													name="listingOptions.htmlManipulation"
													list="#{'Disable All HTML':'Disable All HTML', 'Allow Safe HTML':'Allow Safe HTML', 'Remove All HTML':'Remove All HTML', 'Allow All HTML':'Allow All HTML'}"></s:select>
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Maximum Title Size in Bytes:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.maximumTitleSizeInBytes" size="10"
													value="%{listingOptions.maximumTitleSizeInBytes}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Short title size (for caped display of titles):
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.shortTitleSize" size="10"
													value="%{listingOptions.shortTitleSize}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Maximum Description Size in Bytes:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.maximumDescriptionSizeInBytes"
													size="10"
													value="%{listingOptions.maximumDescriptionSizeInBytes}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Number of Days for New Listings:
											</td>
											<td>
												<s:textfield theme="simple" cssClass="Textfiled-border"
													name="listingOptions.numberOfDaysForNewListings" size="10"
													value="%{listingOptions.numberOfDaysForNewListings}" />
											</td>
										</tr>

										<tr>
											<td align="right" class="verdana12blacknormal">
												Slide Show Max Width (Pixels):
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.slideShowMaxWidth" size="10"
													value="%{listingOptions.slideShowMaxWidth}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Slide Show Max Height (Pixels):
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.slideShowMaxHeight" size="10"
													value="%{listingOptions.slideShowMaxHeight}"
													cssClass="Textfiled-border" />
											</td>
										</tr>

										<tr>
											<td align="right" class="verdana12blacknormal">
												Maximum Auto Resubmit Number:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.maximumAutoResubmitNumber" size="10"
													value="%{listingOptions.maximumAutoResubmitNumber}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Auction Duration Periods Allowed:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.auctionDurationPeriodsAllowed"
													size="65" cssClass="Textfiled-border"
													value="%{listingOptions.auctionDurationPeriodsAllowed}" />
												<br>
												For hours, enter values in the form 0.xx, xx is the hours.
											</td>

										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Listings Duration Periods Allowed:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.listingsDurationPeriodsAllowed"
													size="65" cssClass="Textfiled-border"
													value="%{listingOptions.listingsDurationPeriodsAllowed}" />
												<br>
												For hours, enter values in the form 0.xx, xx is the hours.
											</td>

										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Posible item bacground colors:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.posibleItemBacgroundColors" size="65"
													value="%{listingOptions.posibleItemBacgroundColors}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Categories Selection Menu Size:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.categoriesSelectionMenuSize" size="10"
													value="%{listingOptions.categoriesSelectionMenuSize}"
													cssClass="Textfiled-border" />
											</td>

										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Hot Item Bids:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.hotItemBids" size="10"
													value="%{listingOptions.hotItemBids}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Cool Item Bids:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.coolItemBids" size="10"
													value="%{listingOptions.coolItemBids}"
													cssClass="Textfiled-border" />
											</td>

										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Going Items Minutes:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.goingItemsMinutes" size="10"
													value="%{listingOptions.goingItemsMinutes}"
													cssClass="Textfiled-border" />
											</td>

										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Images maximum Width (Pixels):
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.imagesMaximumWidth" size="10"
													value="%{listingOptions.imagesMaximumWidth}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Images maximum Height (Pixels):
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.imagesMaximumHeight" size="10"
													value="%{listingOptions.imagesMaximumHeight}"
													cssClass="Textfiled-border" />
											</td>

										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Thumbnail Large Width (Pixels):
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.thumbnailLargeWidth" size="10"
													value="%{listingOptions.thumbnailLargeWidth}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Thumbnail Large Height (Pixels):
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.thumbnailLargeHeight" size="10"
													value="%{listingOptions.thumbnailLargeHeight}"
													cssClass="Textfiled-border" />
											</td>

										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Thumbnail Medium Width (Pixels):
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.thumbnailMediumWidth" size="10"
													value="%{listingOptions.thumbnailMediumWidth}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Thumbnail Medium Height (Pixels):
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.thumbnailMediumHeight" size="10"
													value="%{listingOptions.thumbnailMediumHeight}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Thumbnail Small Width (Pixels):
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.thumbnailSmallWidth" size="10"
													value="%{listingOptions.thumbnailSmallWidth}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Thumbnail Medium Height (Pixels):
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.thumbnailSmallHeight" size="10"
													value="%{listingOptions.thumbnailSmallHeight}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Gallery Columns:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.galleryColumns" size="10"
													value="%{listingOptions.galleryColumns}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Gallery Rows:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.galleryRows" size="10"
													value="%{listingOptions.galleryRows}"
													cssClass="Textfiled-border" />
											</td>

										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Listings Items Per Page:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.listingsItemsPerPage" size="10"
													value="%{listingOptions.listingsItemsPerPage}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Bidding List Items Per Page:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.biddingListItemsPerPage" size="10"
													value="%{listingOptions.biddingListItemsPerPage}"
													cssClass="Textfiled-border" />
											</td>

										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Selling List Items Per Page:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.sellingListItemsPerPage" size="10"
													value="%{listingOptions.sellingListItemsPerPage}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Watching List Items Per Page:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.watchingListItemsPerPage" size="10"
													value="%{listingOptions.watchingListItemsPerPage}"
													cssClass="Textfiled-border" />
											</td>

										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Sold List Items Per Page:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.soldListItemsPerPage" size="10"
													value="%{listingOptions.soldListItemsPerPage}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Not Sold List Items Per Page:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.notSoldListItemsPerPage" size="10"
													value="%{listingOptions.notSoldListItemsPerPage}"
													cssClass="Textfiled-border" />
											</td>

										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Watch List Items Per Page:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.watchListItemsPerPage" size="10"
													value="%{listingOptions.watchListItemsPerPage}"
													cssClass="Textfiled-border" />
											</td>
										</tr>

										<tr>
											<td align="right" class="verdana12blacknormal">
												Deposits Per Page:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.depositsPerPage" size="10"
													value="%{listingOptions.depositsPerPage}"
													cssClass="Textfiled-border" />
											</td>

										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Transactions Per Page:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.transactionsPerPage" size="10"
													value="%{listingOptions.transactionsPerPage}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Maximum Comments Length:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.maximumCommentsLength" size="10"
													value="%{listingOptions.maximumCommentsLength}"
													cssClass="Textfiled-border" />
											</td>

										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Default Comments Per Page:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.defaultCommentsPerPage" size="10"
													value="%{listingOptions.defaultCommentsPerPage}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Leave Feedback Items Per Page:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.leaveFeedbackItemsPerPage" size="10"
													value="%{listingOptions.leaveFeedbackItemsPerPage}"
													cssClass="Textfiled-border" />
											</td>

										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Default Item Language:
											</td>
											<td>

												<s:select theme="simple" cssClass="textfield"
													name="listingOptions.defaultItemLanguage"
													value="%{listingOptions.defaultItemLanguage}"
													list="languagesList" listKey="languageCode"
													listValue="languageCode"></s:select>
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Default Region:
											</td>
											<td>
												<s:select theme="simple" cssClass="textfield"
												value="%{listingOptions.defaultRegion}"
												name="listingOptions.defaultRegion"
												id="region" list="regionList" listKey="categoryId" listValue="categoryName"></s:select>
												<ajax:event ajaxRef="ListingOptions/countryChange" />
											</td>

										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Default Country:
											</td>
											<td>
												<div id="country">
													<s:select theme="simple" cssClass="textfield"
														name="listingOptions.defaultCountry"
														value="%{listingOptions.defaultCountry}"
														list="countryList" listKey="categoryId"
														listValue="categoryName"></s:select>
												</div>
											</td>
										</tr>
										<!-- <tr>
											<td align="right" class="verdana12blacknormal">
												Banner Gragh Width (Pixels):
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.bannerGraghWidth" size="10"
													value="%{listingOptions.bannerGraghWidth}"
													cssClass="Textfiled-border" />
											</td>
										</tr> -->
										<tr>
											<td align="right" class="verdana12blacknormal">
												Listing Time Left Yellow Light in minutes:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.listingTimeLeftYellowLightInMinutes"
													size="10"
													value="%{listingOptions.listingTimeLeftYellowLightInMinutes}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Listing Time Left Yellow Light Code:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.listingTimeLeftYellowLightCode"
													size="40"
													value="%{listingOptions.listingTimeLeftYellowLightCode}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Listing Time Left Red Light in minutes:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.listingTimeLeftRedLightInMinutes"
													size="10" cssClass="Textfiled-border"
													value="%{listingOptions.listingTimeLeftRedLightInMinutes}" />
											</td>
										</tr>
										<tr>

											<td align="right" class="verdana12blacknormal">
												Listing Time Left Red Light Code:
											</td>
											<td>
												<s:textfield theme="simple" cssClass="Textfiled-border"
													name="listingOptions.listingTimeLeftRedLightCode" size="40"
													value="%{listingOptions.listingTimeLeftRedLightCode}" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Allow User to Upload Files:
											</td>
											<td>
												<select size="1" name="Allow_File_Upload"
													class="Textfiled-border">
													<option selected="selected" value="1">
														YES
													</option>
													<option>
														NO
													</option>
												</select>
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Files Extensions Allowed:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.filesExtensionsAllowed" size="55"
													value="%{listingOptions.filesExtensionsAllowed}"
													cssClass="Textfiled-border" />
												(Separated by a Space)
											</td>
										</tr>

										<tr>
											<td align="right" class="verdana12blacknormal">
												Number of Files Allowed to Upload:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.numberOfFilesAllowedToUpload"
													size="10"
													value="%{listingOptions.numberOfFilesAllowedToUpload}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Maximum Upload File Size:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.maximumUploadFileSize" size="10"
													value="%{listingOptions.maximumUploadFileSize}"
													cssClass="Textfiled-border" />
												KB (Per File)
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Maximum Upload Total Files Size
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.maximumUploadTotalFilesSize" size="10"
													value="%{listingOptions.maximumUploadTotalFilesSize}"
													cssClass="Textfiled-border" />
												KB
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Allow any File Type to Upload:
											</td>
											<td>
												<select size="1" name="Upload_Any_File"
													class="Textfiled-border">
													<option selected="selected" value="0">
														NO
													</option>
													<option value="1">
														YES
													</option>
												</select>
											</td>
										</tr>

										<tr>
											<td align="right" class="verdana12blacknormal">
												Banned words:
											</td>
											<td>
												<s:textarea rows="8" name="listingOptions.bannedWords"
													cols="60" value="%{listingOptions.bannedWords}"
													cssClass="Textfiled-border"></s:textarea>
												<br>
												Separate words or phrases by comma
											</td>
										</tr>
										<tr>
											<td align="right" class="verdana12blacknormal">
												Bid increment steps:
											</td>
											<td>
												<s:textfield theme="simple"
													name="listingOptions.bidIncrementSteps" size="10"
													value="%{listingOptions.bidIncrementSteps}"
													cssClass="Textfiled-border" />
											</td>
										</tr>
									</tbody>
								</table>
								<br>
								<div>
									<center>
										<table>

											<tbody>
												<tr>
													<td>
														<s:submit type="image"
															src="../Admin-Images/save-chagnes-button.gif" />
														<img style="cursor: pointer;"
															onclick="document.getElementById('form').reset();"
															src="../Admin-Images/reset-button.gif" alt="Reset">
														</td>
												</tr>
											</tbody>
										</table>
									</center>
								</div>
							</s:form>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</tbody>
	<ajax:enable />
</table>

